package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author： ccm
 * time： 2017/7/4.
 * description：
 */

public  class OrderDetailEntity implements Parcelable {


    /**
     * id : null
     * orderDetailId : null
     * orderId : null
     * eventTypeId : null
     * eventNum : 1
     * eventPrice : null
     * stockId : null
     */

    private String id;
    private String orderDetailId;
    private String orderId;
    private String eventTypeId;
    private int eventNum;
    private String eventPrice;
    private String stockId;

    @Override
    public String toString() {
        return "OrderDetailEntity{" +
                "id=" + id +
                ", orderDetailId=" + orderDetailId +
                ", orderId=" + orderId +
                ", eventTypeId=" + eventTypeId +
                ", eventNum=" + eventNum +
                ", eventPrice=" + eventPrice +
                ", stockId=" + stockId +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(String orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getEventTypeId() {
        return eventTypeId;
    }

    public void setEventTypeId(String eventTypeId) {
        this.eventTypeId = eventTypeId;
    }

    public int getEventNum() {
        return eventNum;
    }

    public void setEventNum(int eventNum) {
        this.eventNum = eventNum;
    }

    public String getEventPrice() {
        return eventPrice;
    }

    public void setEventPrice(String eventPrice) {
        this.eventPrice = eventPrice;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.orderDetailId);
        dest.writeString(this.orderId);
        dest.writeString(this.eventTypeId);
        dest.writeInt(this.eventNum);
        dest.writeString(this.eventPrice);
        dest.writeString(this.stockId);
    }

    public OrderDetailEntity() {
    }

    protected OrderDetailEntity(Parcel in) {
        this.id = in.readString();
        this.orderDetailId = in.readString();
        this.orderId = in.readString();
        this.eventTypeId = in.readString();
        this.eventNum = in.readInt();
        this.eventPrice = in.readString();
        this.stockId = in.readString();
    }

    public static final Parcelable.Creator<OrderDetailEntity> CREATOR = new Parcelable.Creator<OrderDetailEntity>() {
        @Override
        public OrderDetailEntity createFromParcel(Parcel source) {
            return new OrderDetailEntity(source);
        }

        @Override
        public OrderDetailEntity[] newArray(int size) {
            return new OrderDetailEntity[size];
        }
    };
}